﻿<%@ Page Title="" Language="C#" MasterPageFile="~/uc/Shop.Master" AutoEventWireup="true" CodeBehind="buyingLeads.aspx.cs" Inherits="ncp.Web.Shop.buyingLeads" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
<title>求购信息_中国农业信息化服务商</title>
<script src="/js/paging.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="rightContent" runat="server">
<div class="bh-dian-right-h-yy">
        <h3>求购信息</h3>
</div>
<div class="bh-dian-con-yy">
    <div class="bh-qy-con-yy">
        <ul  id="content" class="bh-qu1-yy">
        </ul>
        <div id="paging" class="bh-zzg-ny-cleftbrbottom"></div>
    </div>
</div>
<script type="text/javascript">
var paging;
$(function() {
    paging = new Paging();
    paging.dataCount = 0;
    var response = ncp.Web.Shop.buyingLeads.GetNewsCount(shopId);
    if (response.value != null) {
        var jsonOBJ = eval(response.value)[0];
        if (jsonOBJ.isreload) {
            paging.dataCount = jsonOBJ.msg;
        }
    }
    paging.pageSize = 10;
    paging.loadPagingText();
    paging.query();
});
Paging.prototype.query = function() {
    var rep = ncp.Web.Shop.buyingLeads.GetNewsList(paging.pageIndex - 1, paging.pageSize, shopId);
    if (rep.value != null) {
        var json = eval(rep.value)[0];
        if (json.isreload) {
            $("#content").html(json.msg);
        }
    }
};
</script>
</asp:Content>
